package pl.netcoffee.android.finserDroid;

public class ApiCommand {

	public ApiCommand(ServiceProvider api, String defaultCashAccount, String defaultCardAccount){
		
		this.api = api;
		this.defaultCardAccount = defaultCardAccount;
		this.defaultCashAccount = defaultCashAccount;
		
	}
	
	
	static final int INCOME = 1;
	static final int OUTCOME = 2;
	static final int TRANSFER = 4;
	
	public String amount = "0";
	public String sourceAccount = "";
	public String targetAcoount = "";
	
	public String defaultCashAccount = "";
	public String defaultCardAccount = "";
	
	public String description = "";
	
	public int operationType = 0;
	
	protected ServiceProvider api = null;
	
	public String createCommand(){
		return "";
	}
	
	public boolean executeCommand(){
		return api.sendCommand(createCommand());
	}
	
	public boolean sendCommand(String command){
		return api.sendCommand(command);
	}
	
	public boolean registerDefaultCashPayment(String amount, String description){
		return true;
	}
	public boolean registerDefaultCardPayment(String amount, String description){
		return true;
	}
	
	public boolean registerAtm(String amount, String description){
		return true;
	}
}
